package com.ninthgroup.benlailife.utils;

import android.content.Context;

import com.nostra13.universalimageloader.cache.disc.impl.UnlimitedDiskCache;
import com.nostra13.universalimageloader.core.ImageLoader;
import com.nostra13.universalimageloader.core.ImageLoaderConfiguration;

/**
 * Created by Administrator on 15-10-20.
 */
public class ImageLoaderUtils {
    public static void configGlobalImageLoader(Context context)
    {
        ImageLoaderConfiguration.Builder builder=new ImageLoaderConfiguration.Builder(context);
        builder.diskCache(new UnlimitedDiskCache(FileUtils.getImageCache()));
        ImageLoader.getInstance().init(builder.build());
    }
}
